﻿namespace LoginUI.Login
{
    public class validate
    {
        // 验证账号,长度在6-16位之间
        public static bool ValidateAccount(string account)
        {
            if (account.Length < 6 || account.Length > 16) return false;
            return true;
        }

        // 验证密码,长度在6-16位之间
        public static bool ValidatePassword(string password)
        {
            if (password.Length < 6 || password.Length > 16) return false;
            return true;
        }
    }
}